#ifndef __OBJCREATOR_H__
#define __OBJCREATOR_H__

#include "cocos2d.h"

USING_NS_CC;

class ObjCreatorBase
{
public:
	virtual CCObject* Create() {return 0;}
};

template<class T>
class ObjCreator : ObjCreatorBase
{
public:
	virtual CCObject* Create() {return new T();}
};

#endif